import {INIT_ORDER} from './mutations-type'
export default {
    state:{
        orderArr:[],
        orderId:localStorage.getItem('orderId') || ''
    },
    getters:{
        
    },
    mutations:{
        [INIT_ORDER](state,orderArr){
            if(!orderArr) return
            state.orderArr = orderArr
            state.orderId = orderArr.order_id
            localStorage.setItem('orderId',JSON.stringify(orderArr.order_id))
        }
    },
    actions:{

    }
}